package com.ado.abyss.core.manager.impl;

import com.ado.abyss.core.dal.dao.SysUserRoleMapper;
import com.ado.abyss.core.dal.model.SysUserRole;
import com.ado.abyss.core.manager.SysUserRoleManager;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author adonais
 * @date 2020/7/9
 * @description SysUserRoleManagerImpl
 **/
@Service(value = "sysUserRoleManager")
public class SysUserRoleManagerImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements SysUserRoleManager {

    @Autowired
    private SysUserRoleMapper sysUserRoleMapper ;

    @Override
    public List<SysUserRole> findUserRoles(Long userId) {
        return sysUserRoleMapper.findUserRoles(userId);
    }
}
